import request from '@/utils/request'

// 查询保本资金池列表
export function listTKeepOrderPricePool(query) {
  return request({
    url: '/bussiness/TKeepOrderPricePool/list',
    method: 'get',
    params: query
  })
}

// 查询保本资金池详细
export function getTKeepOrderPricePool(id) {
  return request({
    url: '/bussiness/TKeepOrderPricePool/' + id,
    method: 'get'
  })
}

// 新增保本资金池
export function addTKeepOrderPricePool(data) {
  return request({
    url: '/bussiness/TKeepOrderPricePool',
    method: 'post',
    data: data
  })
}

// 修改保本资金池
export function updateTKeepOrderPricePool(data) {
  return request({
    url: '/bussiness/TKeepOrderPricePool',
    method: 'put',
    data: data
  })
}

// 删除保本资金池
export function delTKeepOrderPricePool(id) {
  return request({
    url: '/bussiness/TKeepOrderPricePool/' + id,
    method: 'delete'
  })
}
